


def assertTrue(res:bool,message:str=""):
    '''断言结果为真'''
    if res == False:
        raise Exception("assertTrue error!", message)

def assertEquals(obj1,obj2,message:str=""):
    '''断言结果为相等'''
    if obj1 != obj2:
        raise Exception("assertTrue error!", message)

def assertEqualsStr(obj1,obj2,message:str=""):
    '''断言结果为toString后相等'''
    if str(obj1) != str(obj2):
        raise Exception("assertTrue error!", message)

def assertNotEquals(obj1,obj2,message:str=""):
    '''断言结果为不相等'''
    if obj1 == obj2:
        raise Exception("assertTrue error!", message)

